@echo off &title 一键遍历出当前目录及子文件夹下指定类型的文件 ~by 阿牛 &chcp 936 &color a
rem & mode con cols=45 lines=29

:inputFileType
REM 请求用户输入要提取的文件类型
echo.
set /p fileType= ^_^ input file type:

REM 创建新的提取结果文件夹（如果不存在）
if not exist result_%fileType% (
echo.&echo “result_%fileType%”.txt
echo > result_%fileType%.txt
)
echo.
echo.===================================
echo 3 sencond start get %fileType% file ,pls hold on…
echo popup result_%fileType%.txt
echo.=================================== &timeout>nul /t 2

dir/s > result_“%fileType%”.txt /s/a/b *.“%fileType%”
@REM start result_“%fileType%”.txt

echo.&echo Finished “%fileType%” format and the next &timeout>nul /t 2
REM pause > nul
@REM goto inputFileTypec
set filename=result_%fileType%.txt
echo %filename%
FOR /F %%i IN (%filename%) DO copy /y “%%i” “C:\we\3rd\grpc\build2\Debug”